/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.excesys.exsecs.energy.service.impl;

import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.excesys.exsecs.common.core.util.R;
import com.excesys.exsecs.common.excel.vo.ErrorMessage;
import com.excesys.exsecs.energy.entity.AmmeterFlow;
import com.excesys.exsecs.energy.entity.BumDevEnroll;
import com.excesys.exsecs.energy.mapper.AmmeterFlowMapper;
import com.excesys.exsecs.energy.mapper.DevEnrollMapper;
import com.excesys.exsecs.energy.service.AmmeterFlowService;
import com.excesys.exsecs.energy.service.DevEnrollService;
import com.excesys.exsecs.energy.vo.DevEnrollExcelImportVO;
import org.springframework.stereotype.Service;
import org.springframework.validation.BindingResult;

import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 设备注册
 */
@Service
public class AmmeterFlowServiceImpl extends ServiceImpl<AmmeterFlowMapper, AmmeterFlow> implements AmmeterFlowService {

	@Override
	public List<Map<String, Object>> selectValuesFromJson(List<String> keys,String unitNo,String startTime,String endTime) {
		return this.baseMapper.selectValuesFromJson(keys,unitNo,startTime,endTime);
	}

	@Override
	public List<Map<String, Object>> queryMaxDemand(String key, String unitNo, String startTime, String endTime) {
		return this.baseMapper.queryMaxDemand(key,unitNo,startTime,endTime);
	}

	@Override
	public List<Map<String, Object>> queryMaxDemandByMonth(String key, String unitNo,String startTime,String endTime) {
		return this.baseMapper.queryMaxDemandByMonth(key,unitNo,startTime,endTime);
	}
}
